function cl(u,i,t,s) {if(document.images){var z="";if(u.href)z="&url="+encodeURI(u.href);new Image().src="/click.php?table="+encodeURI(t)+"&id="+encodeURI(i)+z+"&sig="+s;}else{u.href="/click.php?table="+encodeURI(t)+"&id="+encodeURI(i)+"&url="+encodeURI(u.href)+"&sig="+s;u.onmousedown="";}return true;}
function FlashRequest() {alert('请点击左下方的播放按钮');}
function needHelp(img,txt) {var helptxt=txt?txt:'有问题？请联系在线客服';document.write('<a href="/forum/1">'+ helptxt +'</a>');}

var isIE4, isMac, isNav6;
if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
  isIE  = (navigator.appName.indexOf("Microsoft") != -1) ? true : false
  isMac = (navigator.platform.indexOf("Mac") != -1) ? true : false
  isPNG = (isIE && ! isMac) ? false : true
}

function login(obj) {
    Lightview.show(obj);
    return false;
}

var _islocal = false;
function errorHandler(msg, url, line) {
    if (!_islocal) { return true; }
    // debug mode
    var txt ="Error: " + msg + "\n";
    txt +="URL: " + url + "\n";
    txt +="Line: " + line + "\n\n";
    txt +="Click OK to continue.\n\n";
    alert(txt);
    return false;
}

onerror = errorHandler;

function bodyOnLoad() {
    try {
        new Effect.Round(null,'roundNormal');
        if ($('ll')) $('ll').observe('click', function() {this.href="javascript:void(0)";return login('_ll');});
        <?php do_action('view_header_js'); ?>

    } catch (e) {}
}

addDOMLoadEvent(bodyOnLoad);
